<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pDepartment
 *
 * @ORM\Table(name="p2p_department", uniqueConstraints={@ORM\UniqueConstraint(name="d_code", columns={"d_code"})}, indexes={@ORM\Index(name="d_father_id", columns={"d_father_id"})})
 * @ORM\Entity
 */
class P2pDepartment
{
    /**
     * @var string
     *
     * @ORM\Column(name="d_code", type="string", length=150, nullable=false)
     */
    private $dCode;

    /**
     * @var integer
     *
     * @ORM\Column(name="d_father_id", type="integer", nullable=false)
     */
    private $dFatherId;

    /**
     * @var string
     *
     * @ORM\Column(name="d_profile", type="string", length=150, nullable=false)
     */
    private $dProfile;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set dCode
     *
     * @param string $dCode
     *
     * @return P2pDepartment
     */
    public function setDCode($dCode)
    {
        $this->dCode = $dCode;

        return $this;
    }

    /**
     * Get dCode
     *
     * @return string
     */
    public function getDCode()
    {
        return $this->dCode;
    }

    /**
     * Set dFatherId
     *
     * @param integer $dFatherId
     *
     * @return P2pDepartment
     */
    public function setDFatherId($dFatherId)
    {
        $this->dFatherId = $dFatherId;

        return $this;
    }

    /**
     * Get dFatherId
     *
     * @return integer
     */
    public function getDFatherId()
    {
        return $this->dFatherId;
    }

    /**
     * Set dProfile
     *
     * @param string $dProfile
     *
     * @return P2pDepartment
     */
    public function setDProfile($dProfile)
    {
        $this->dProfile = $dProfile;

        return $this;
    }

    /**
     * Get dProfile
     *
     * @return string
     */
    public function getDProfile()
    {
        return $this->dProfile;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
